<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
<meta name="description" content="" />
<meta name="author" content="" />
<!--[if IE]>
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<![endif]-->
<title>注册</title>
<!-- BOOTSTRAP CORE STYLE  -->
<link href="__STATIC__/index/css/bootstrap.css" rel="stylesheet" />
<!-- FONT AWESOME STYLE  -->
<link href="__STATIC__/index/css/font-awesome.css" rel="stylesheet" />
<!-- CUSTOM STYLE  -->
<link href="__STATIC__/index/css/style.css" rel="stylesheet" />
<style>
.error{
	color:red;
}	
</style>
</head>
<body>
<div class="navbar navbar-inverse set-radius-zero" style="min-height:40px;">
	<div class="container">
		<div class="navbar-header" style="padding:0">
			<div class="navbar-brand" style="float:right;">
				<a href="javascript:void(0)" style="font-size: 13px;">欢迎注册</a>
			</div>
			<a class="navbar-brand" href="{:url('index/index/index')}"style="padding:0">
				<!-- <img src="__STATIC__/index/logo.jpg" style="width:30px;height:30px;margin:0px 0px;position:relative;top:10px;left:4px;" /> -->
			</a>
            <span id="game-title" style="float: left;margin-left: 10px;margin-top:10px;font-size: 13px;">幸运理财&nbsp;&nbsp;<a href="{:url('index/index/index')}" style="font-size: 13px;">首页</a>&nbsp;&nbsp;</span>         
			<!-- <a href="#" class="btn btn-danger pull-right">LOG ME OUT</a> -->
		</div>

		<!-- <div class="right-div">
			<a href="#" class="btn btn-danger pull-right">LOG ME OUT</a>
		</div> -->
	</div>
</div>
<section class="footer-section" style="padding-right:18px;padding-left:18px;">
	<div class="container" style="width:100%;padding:0 2px;">
		<div class="row"  style="text-align:left;">
			<div class="col-md-6 col-sm-6 col-xs-12">
               <div class="panel panel-danger">
                        <div class="panel-heading">
                           请填写注册信息
                        </div>
                        <div class="panel-body">
                            <form action="{:url('index/register/add')}" method="post">       
	                            <div class="form-group">
	                                <label></label>
	                                <input class="form-control" type="text" name="username"  placeholder="账号" id="username" required>
	                            </div>
	                            <div class="form-group">
                                    <input class="form-control" type="password" name="password" placeholder="密码" id="password">
                                </div>
                                <div class="form-group">
                                <div style="clear:both"></div>
                                </div>
                                <div class="form-group">
                                    <input class="form-control  agent" type="text" name="code" placeholder="邀请码"  style="width:50%;" required/>
                                </div>
                                <div class="form-group"> 
                                  <input type="checkbox" name="agree" value="1"><label for="ck1">本人同意</label><a href="/lottery/index.php/home/register/agreement.html">《开户协议》</a>
                                </div>
	                            <button type="submit" class="btn btn-danger" id="btn">注册 </button>
	                            <a href="{:url('index/login/index')}" style="color:blue;">已有账号,去登录</a>
                            </form>
                    </div>
                </div>
            </div>
		</div>
	</div>
</section> 
<!-- form SECTION END-->

  <!-- FOOTER SECTION END-->
<!-- JAVASCRIPT FILES PLACED AT THE BOTTOM TO REDUCE THE LOADING TIME  -->
<!-- CORE JQUERY  -->
<script src="__STATIC__/index/js/jquery-1.10.2.js"></script>
<!-- BOOTSTRAP SCRIPTS  -->
<script src="__STATIC__/index/js/bootstrap.js"></script>
<script src="__STATIC__/index/js/layer_mobile/layer.js"></script>
<script src="__STATIC__/index/js/jquery.validate.min.js"></script>
<script src="__STATIC__/admin/js/jquery.js"></script>
</body>
</html>
<script type="text/javascript">
   $("#btn").click(function(){
      var username = $("#username").val();
      var password = $("#password").val();
     /* if(!(/^[a-zA-Z][a-zA-Z0-9_-]{5,15}$/).test(username)){
        alert("请输入字母开头的6-15位字母、数字、下划线");
        return false;
      }*/
      if(!(/^[a-zA-Z0-9_-]{6,20}$/).test(password)){
        alert("请使用6-20位英文，数字及下划线组合");
        return false;
      }
      
  })  
</script>